<template>
  <div id="app">
    <div class="row">
      <div class="col-xs-offset-2 col-xs-8">
        <router-link class="page-header" to="/helloWorld">train-vue</router-link>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <router-link class="list-group-item" active-class="active" to="/helloWorld">helloWorld</router-link>
          <router-link class="list-group-item" active-class="active" to="/cmpntInteractApp">cmpntInteractApp</router-link>
          <router-link class="list-group-item" active-class="active" to="/multiRouter">multiRouter</router-link>
          <router-link class="list-group-item" active-class="active" to="/vuexApp">vuexApp</router-link>
          <router-link class="list-group-item" active-class="active" to="/toDoList">toDoList</router-link>
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!-- 指定组件的呈现位置 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {
    
  },
  mounted(){
    // console.log('App',this)
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}
.page-header {
  display: block;
  text-decoration: none;
  margin: 20px 0;
  font-size: 30px;
  font-weight: bolder;
  color: black;
}
</style>
